/**
 * 报价 api 封装
 */
import {download, getRequest, postRequest, request} from '/@/lib/axios';

export const recoveryApi = {

    /**
     * 分页查询
     */
    queryPage: (param) => {
        return postRequest('/order/pay/queryPage', param);
    },
    /**
     * 增加
     */
    add: (param) => {
        return postRequest('/machine/add', param);
    },

    /**
     * 修改
     */
    update: (param) => {
        return postRequest('/machine/update', param);
    },

    /**
     * 删除
     */
    delete: (id) => {
        return getRequest(`/machine/delete/${id}`);
    },

    /**
     * 标记为打款成功
     */
    paySuccess: (ids) => {
        return postRequest(`/order/pay/success?ids=${ids}`);
    },

    /**
     * 标记为打款失败
     */
    payError: (ids,type) => {
        return postRequest(`/order/pay/erroe?ids=${ids}&type=${type}`);
    },

    /**
     * 导出
     */
    orderExport: (param) => {
        return download(null,'/order/pay/export', param);
    },


};
